package org.zhaijisong.pojo;

import java.sql.Timestamp;

public class Transfer {
    private Integer id;
    private Integer orderId;
    private Integer staffId;
    private Integer libraryId;
    private Integer state;
    private Timestamp initDate;
    private Timestamp signDate;
    private String[] states;
    private Worksheet worksheet;
    private String orderIdstr;

    public String getOrderIdstr() {
        return orderIdstr;
    }

    public void setOrderIdstr(String orderIdstr) {
        this.orderIdstr = orderIdstr;
    }

    public Worksheet getWorksheet() {
        return worksheet;
    }

    public void setWorksheet(Worksheet worksheet) {
        this.worksheet = worksheet;
    }

    public String[] getStates() {
        return states;
    }

    public void setStates(String[] states) {
        this.states = states;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Integer getStaffId() {
        return staffId;
    }

    public void setStaffId(Integer staffId) {
        this.staffId = staffId;
    }

    public Integer getLibraryId() {
        return libraryId;
    }

    public void setLibraryId(Integer libraryId) {
        this.libraryId = libraryId;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Timestamp getInitDate() {
        return initDate;
    }

    public void setInitDate(Timestamp initDate) {
        this.initDate = initDate;
    }

    public Timestamp getSignDate() {
        return signDate;
    }

    public void setSignDate(Timestamp signDate) {
        this.signDate = signDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Transfer transfer = (Transfer) o;

        if (id != null ? !id.equals(transfer.id) : transfer.id != null) return false;
        if (orderId != null ? !orderId.equals(transfer.orderId) : transfer.orderId != null) return false;
        if (staffId != null ? !staffId.equals(transfer.staffId) : transfer.staffId != null) return false;
        if (libraryId != null ? !libraryId.equals(transfer.libraryId) : transfer.libraryId != null) return false;
        if (state != null ? !state.equals(transfer.state) : transfer.state != null) return false;
        if (initDate != null ? !initDate.equals(transfer.initDate) : transfer.initDate != null) return false;
        if (signDate != null ? !signDate.equals(transfer.signDate) : transfer.signDate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (orderId != null ? orderId.hashCode() : 0);
        result = 31 * result + (staffId != null ? staffId.hashCode() : 0);
        result = 31 * result + (libraryId != null ? libraryId.hashCode() : 0);
        result = 31 * result + (state != null ? state.hashCode() : 0);
        result = 31 * result + (initDate != null ? initDate.hashCode() : 0);
        result = 31 * result + (signDate != null ? signDate.hashCode() : 0);
        return result;
    }
}
